package com.zhouyx.eurekaconsumer.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import com.zhouyx.eurekaconsumer.feign.DcClient;

/**
 * @ClassName DcController
 * @Description TODO
 * @Author za-zhouyunxing
 * @Date 2018/5/17 14:49
 * @Version 1.0
 */
@RestController
public class DcController {
    @Autowired
    DcClient dcClient;

    @GetMapping("/consumer")
    public String dc() {
       return dcClient.consumer();
    }
}
